deploy: Remove lock when re-staging
authorColin Walters <walters@verbum.org>
Fri, 13 Oct 2023 17:45:04 +0000 (13:45 -0400)
committerColin Walters <walters@verbum.org>
Fri, 13 Oct 2023 17:45:04 +0000 (13:45 -0400)
commitac69c70750f5b3e78ce0c71319719616af365d04
treea2c98388a7b77c9760877d968d287572b64dafe8
parent824ac1af0f955fb9158bd8ff4d227e1855e71243
deploy: Remove lock when re-staging

This closes the biggest foot-gun when doing e.g.
`rpm-ostree rebase` when zincati is running on a FCOS system.

Previously if zincati happened to have staged + locked a deployment,
we'd keep around the lock which is definitely not what is desired.
src/libostree/ostree-sysroot-deploy.c
tests/kolainst/destructive/staged-deploy.sh